package com.ruoyi.patrol.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知公告对象 pt_notification
 *
 * @author 理想三旬
 * @date 2022-11-06
 */
public class PtNotification extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 通知ID
     */
    private String id;

    /**
     * 通知标题
     */
    @Excel(name = "通知标题")
    private String title;

    /**
     * 通知内容
     */
    @Excel(name = "通知内容")
    private String content;

    /**
     * 是否回复
     */
    private String answerType;

    /**
     * 附件
     */
    private String fileUrl;

    /**
     * 回复截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deadlineTime;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /**
     * 通知状态
     */
    @Excel(name = "通知状态")
    private String status;


    /**
     * 学校
     */
    private int[] schoolsKey;

    /**
     * 已阅读
     */
    private int readYes;

    /**
     * 未阅读
     */
    private int readNo;

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    private String finishTime;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public int getReadYes() {
        return readYes;
    }

    public void setReadYes(int readYes) {
        this.readYes = readYes;
    }

    public int getReadNo() {
        return readNo;
    }

    public void setReadNo(int readNo) {
        this.readNo = readNo;
    }

    public int[] getSchoolsKey() {
        return schoolsKey;
    }

    public void setSchoolsKey(int[] schoolsKey) {
        this.schoolsKey = schoolsKey;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setAnswerType(String answerType) {
        this.answerType = answerType;
    }

    public String getAnswerType() {
        return answerType;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setDeadlineTime(Date deadlineTime) {
        this.deadlineTime = deadlineTime;
    }

    public Date getDeadlineTime() {
        return deadlineTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("answerType", getAnswerType())
                .append("fileUrl", getFileUrl())
                .append("deadlineTime", getDeadlineTime())
                .append("publishTime", getPublishTime())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
